package com.example.sharding.jdbc.db.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;

@ApiModel(value = "PayOrderPO", description = "pay_order表实体对象")
public class PayOrderPO implements Serializable {
    /**
     * BIGINT(19) 必填
     * 
     */
    @ApiModelProperty(name = "orderId", value = "")
    private Long orderId;

    /**
     * INTEGER(10)
     * 
     */
    @ApiModelProperty(name = "userId", value = "")
    private Integer userId;

    /**
     * VARCHAR(128)
     * 
     */
    @ApiModelProperty(name = "productName", value = "")
    private String productName;

    /**
     * INTEGER(10)
     * 
     */
    @ApiModelProperty(name = "count", value = "")
    private Integer count;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table pay_order
     *
     * @mbg.generated
     */
    private static final long serialVersionUID = 1L;

    /**
     * BIGINT(19) 必填
     * 获得 
     */
    public Long getOrderId() {
        return orderId;
    }

    /**
     * BIGINT(19) 必填
     * 设置 
     */
    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    /**
     * INTEGER(10)
     * 获得 
     */
    public Integer getUserId() {
        return userId;
    }

    /**
     * INTEGER(10)
     * 设置 
     */
    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    /**
     * VARCHAR(128)
     * 获得 
     */
    public String getProductName() {
        return productName;
    }

    /**
     * VARCHAR(128)
     * 设置 
     */
    public void setProductName(String productName) {
        this.productName = productName == null ? null : productName.trim();
    }

    /**
     * INTEGER(10)
     * 获得 
     */
    public Integer getCount() {
        return count;
    }

    /**
     * INTEGER(10)
     * 设置 
     */
    public void setCount(Integer count) {
        this.count = count;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table pay_order
     *
     * @mbg.generated
     */
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", orderId=").append(orderId);
        sb.append(", userId=").append(userId);
        sb.append(", productName=").append(productName);
        sb.append(", count=").append(count);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table pay_order
     *
     * @mbg.generated
     */
    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        PayOrderPO other = (PayOrderPO) that;
        return (this.getOrderId() == null ? other.getOrderId() == null : this.getOrderId().equals(other.getOrderId()))
            && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
            && (this.getProductName() == null ? other.getProductName() == null : this.getProductName().equals(other.getProductName()))
            && (this.getCount() == null ? other.getCount() == null : this.getCount().equals(other.getCount()));
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table pay_order
     *
     * @mbg.generated
     */
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getOrderId() == null) ? 0 : getOrderId().hashCode());
        result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
        result = prime * result + ((getProductName() == null) ? 0 : getProductName().hashCode());
        result = prime * result + ((getCount() == null) ? 0 : getCount().hashCode());
        return result;
    }
}